package red.stu.window.editor.code;

import java.util.LinkedList;

import javax.swing.text.SimpleAttributeSet;

public class LexiconWord {
	
	private LinkedList<String> keyword;
	
	private SimpleAttributeSet attr;
	
	private boolean attrReplace;
	
	public LexiconWord(LinkedList<String> keyword, SimpleAttributeSet attr, boolean attrReplace) {
		this.keyword = keyword;
		this.attr = attr;
		this.attrReplace = attrReplace;
	}

	public LinkedList<String> getKeyword() {
		return keyword;
	}

	public SimpleAttributeSet getAttr() {
		return attr;
	}

	public void setKeyword(LinkedList<String> keyword) {
		this.keyword = keyword;
	}

	public void setAttr(SimpleAttributeSet attr) {
		this.attr = attr;
	}
	
	public boolean isAttrReplace() {
		return attrReplace;
	}

	public void setAttrReplace(boolean attrReplace) {
		this.attrReplace = attrReplace;
	}

	public boolean containsKeyword(String word) {
		return keyword.contains(word);
	}
	
}
